//Common function

/**
 * Do change language of current page
 * @param language
 */
function changeLanguage(language) {
	if(window.showingReport)
		Ext.util.Cookies.set('filter_needreport', 1);
	location.href = baseUrl + '/controller.php?task=lang&lang=' + language + '&redirect=' + encodeURIComponent(location.href);
}